import { createStore } from 'vuex'
import mutations from './mutations'
export default createStore({
    state: {
        cartList: [],//购物车数据
        isDelete: true,//点击编辑的时候，底部组件的实现
        edit: true,//默认展示编辑的状态
        orderList: [],//结算
        orderListEnd: [],
        userAddress: [
            {
                id: 1001,
                name: '小妃',
                tel: '15874856666',
                province: '广东省',
                city: '深圳市',
                country: '南山区',
                addressDetail: '深圳湾',
                isDefault: true,
                areaCode: '110101',
            },
            {
                id: 1002,
                name: '小小妃',
                tel: '15874859999',
                province: '湖北省',
                city: '武汉市',
                country: '武昌区',
                addressDetail: '黄鹤楼',
                isDefault: false,
                areaCode: '110101',
            },
        ]
    },
    mutations,
    actions: {}
})